﻿@model List<Core.Contract.DataContract.RelaxStoryDataContract>

@foreach (var item in Model)
{
    <div class="news">
        <div class="newsimg">
            <a href="/Home/NewsDetail/@Session["Culture"]/@item.CategoryId/@item.Id/@item.Tag" title="@item.Name">
                <img src="/@item.Image" alt="@item.Name"/>
            </a>
        </div>
        <div class="denews">
            <div class="row name"><b>
                <h3><a href="/Home/NewsDetail/@Session["Culture"]/@item.CategoryId/@item.Id/@item.Tag">@item.Name</a></h3>
            </b></div>
            <div class="content detail-content">
                @if (item.Decription != null && HttpUtility.HtmlDecode(item.Decription).Length > 80)
                {
                    <h4>@Html.Raw(HttpUtility.HtmlDecode(item.Decription).Substring(0, 80)) ... </h4> 
                }
                else
                {
                    <h4>@Html.Raw(HttpUtility.HtmlDecode(item.Decription))</h4> 
                }
            </div>
        </div>
    </div>
           
}
